package com.juzi.wopu.domain;

import java.util.HashSet;
import java.util.Set;

public class Role {
	private Long iId;// 角色的编号（自增长）
	
	private String sName; // 角色的名字
	
	/*private Date dtInsert;*/
	
	// 单向多对多 当前角色拥有的权限列表
	//private Set<Permission> permissions=new HashSet<Permission>();
	
	// 多对多 当前角色拥有的菜单列表
	private Set<Menu> menus=new HashSet<Menu>();

	public Role(){}

	public Role(Long id) {
		this.iId=id;
	}

	public Long getIId() {
		return iId;
	}

	public void setIId(Long iId) {
		this.iId = iId;
	}

	public String getSName() {
		return sName;
	}

	public void setSName(String sName) {
		this.sName = sName;
	}
	
	/*public Date getDtInsert() {
		return dtInsert;
	}

	public void setDtInsert(Date dtInsert) {
		this.dtInsert = dtInsert;
	}*/

	public Long getiId() {
		return iId;
	}

	public void setiId(Long iId) {
		this.iId = iId;
	}

	public String getsName() {
		return sName;
	}

	public void setsName(String sName) {
		this.sName = sName;
	}

//	public Set<Permission> getPermissions() {
//		return permissions;
//	}
//
//	public void setPermissions(Set<Permission> permissions) {
//		this.permissions = permissions;
//	}

	public Set<Menu> getMenus() {
		return menus;
	}

	public void setMenus(Set<Menu> menus) {
		this.menus = menus;
	}
}
